import ch.hsr.geohash.GeoHash;
import org.apache.hadoop.hive.ql.exec.UDF;

public class MyUDFGeoHash extends UDF {
    public MyUDFGeoHash(){

    }
    public String evaluate(double jd,double wd,int len){
        GeoHash geoHash=GeoHash.withCharacterPrecision(wd,jd,6);
        return geoHash.toBase32();
    }
}
